<@compress single_line=isCompress>
(function(){
    var _basePath = '${base}';
    var _location = document.location;
    var _rootPath = _location.protocol + '//' + _location.hostname;
        _rootPath+= _location.port == '' ? '' : ':' + _location.port;
        _rootPath+= _basePath;
    window.rootPath = _rootPath;
    window.resVersion = '${v}';
    <#if link?starts_with("/menus/")>document.write('<base href="' + window.rootPath + '/" />');
    </#if>
    <#if user??>window.user = {nick:'${user.nick!'""'}', userId:${user.userId!'""'}, username:'${user.username!'""'}', email:'${user.email!'""'}',roleId:${user.roleId!'""'},parentRole:${user.parentRole!'""'}};</#if>
})();
</@compress>